-- GENERATED SPELL FOR [Dark Rider of Acherus] --


function spell0_28768(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(52374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28768', 586, 1)
end

function spell1_28768(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(52372,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28768', 20000, 1)
end

function spell2_28768(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28768', 12000, 1)
end

function spell3_28768(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(52356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28768', 1500, 1)
end

function Sorts_28768(pUnit, Event)
local choix_sorts_28768 = math.random(0, 3)
if choix_sorts_28768 == 0 then
pUnit:RegisterEvent('spell0_28768', 1, 1)
end
if choix_sorts_28768 == 1 then
pUnit:RegisterEvent('spell1_28768', 1, 1)
end
if choix_sorts_28768 == 2 then
pUnit:RegisterEvent('spell2_28768', 1, 1)
end
if choix_sorts_28768 == 3 then
pUnit:RegisterEvent('spell3_28768', 1, 1)
end
end

function mob28768_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28768', math.random(1500, 3000), 1)
end

function mob28768_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28768_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28768_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28768, 1, 'mob28768_Action')
RegisterUnitEvent(28768, 2, 'mob28768_Leave')
RegisterUnitEvent(28768, 3, 'mob28768_Kill')
RegisterUnitEvent(28768, 4, 'mob28768_Die')
